package p270jp.pxv.android.comment.presentation.flux;

import androidx.lifecycle.AbstractC0720j0;
import p208hf.C3602c;
import p270jp.pxv.android.comment.domain.model.CommentInputState;
import p270jp.pxv.android.comment.domain.model.CommentType;
import p270jp.pxv.android.commonObjects.model.PixivComment;
import p270jp.pxv.android.legacy.model.PixivWork;
import p285kf.CommentInputAction;
import p325m0.MutabilityOwnership;
import p493sf.AbstractC6043c;

/* compiled from: CommentInputActionCreator.kt */
/* renamed from: jp.pxv.android.comment.presentation.flux.CommentInputActionCreator */
/* loaded from: classes2.dex */
public final class CommentInputActionCreator extends AbstractC0720j0 {

    /* renamed from: c */
    public final C3602c f18913c;

    /* renamed from: d */
    public final AbstractC6043c f18914d;

    public CommentInputActionCreator(C3602c cVar, AbstractC6043c cVar2) {
        MutabilityOwnership.m3745m(cVar, "commentService");
        MutabilityOwnership.m3745m(cVar2, "dispatcher");
        this.f18913c = cVar;
        this.f18914d = cVar2;
    }

    /* renamed from: d */
    public final void m4634d() {
        this.f18914d.mo2437b(CommentInputAction.C4517b.f20319a);
    }

    /* renamed from: e */
    public final void m4633e() {
        this.f18914d.mo2437b(CommentInputAction.C4521f.f20323a);
    }

    /* renamed from: f */
    public final void m4632f(PixivWork pixivWork, PixivComment pixivComment) {
        CommentType commentType;
        MutabilityOwnership.m3745m(pixivWork, "work");
        if (pixivComment != null) {
            commentType = new CommentType.Reply(pixivWork, pixivComment);
        } else {
            commentType = new CommentType.Comment(pixivWork);
        }
        this.f18914d.mo2437b(new CommentInputAction.C4524i(commentType));
    }

    /* renamed from: g */
    public final void m4631g() {
        this.f18914d.mo2437b(new CommentInputAction.C4516a(CommentInputState.Comment.f18902a));
    }
}
